package com.zhao.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

//订单类
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Orders{
    @TableId(type = IdType.INPUT)
    private String id;          //订单编号',
    private String subject;     // 订单名称',
    private Integer uid;         //'充值人',
    private Integer num;         // '数量',
    private BigDecimal price;     //'金额',
    private String orderStatus;
    @TableLogic //逻辑删除注解
    private Integer deleted;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(exist = false)
    private String author;
    @TableField(exist = false)
    private String iphone;
}
